<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="EscursioneViewDlg" widgetVar="EscursioneViewDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.ViewEscursioneTitle}" closeOnEscape="true">

            <h:form id="EscursioneViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{escursioneController.selected != null}">

                        <h:outputText value="#{myBundle.ViewEscursioneLabel_idESCURSIONE}"/>
                        <h:outputText value="#{escursioneController.selected.idESCURSIONE}" title="#{myBundle.ViewEscursioneTitle_idESCURSIONE}"/>

                        <h:outputText value="#{myBundle.ViewEscursioneLabel_prezzo}"/>
                        <h:outputText value="#{escursioneController.selected.prezzo}" title="#{myBundle.ViewEscursioneTitle_prezzo}"/>

                        <h:outputText value="#{myBundle.ViewEscursioneLabel_data}"/>
                        <h:outputText value="#{escursioneController.selected.data}" title="#{myBundle.ViewEscursioneTitle_data}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>

                        <h:outputText value="#{myBundle.ViewEscursioneLabel_descrizione}"/>
                        <h:outputText value="#{escursioneController.selected.descrizione}" title="#{myBundle.ViewEscursioneTitle_descrizione}"/>

                        <h:outputText value="#{myBundle.ViewEscursioneLabel_luogo}"/>
                        <h:outputText value="#{escursioneController.selected.luogo.cap}"/>

                        <h:outputText value="#{myBundle.ViewEscursioneLabel_elemento}"/>
                        <h:outputText value="#{escursioneController.selected.elemento.idELEMENTO}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="EscursioneViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
